package speed2010.middleware;

import speed2010.middleware.comunicacao.SocketServer;
import speed2010.middleware.serviceOverlay.node.Node;

public class ServerCommHandler {

	private SocketServer socketServer = null;

	public ServerCommHandler(Node parentNode) {
		try {
			this.socketServer = new SocketServer(parentNode.getAddress()
					.getPorta(), parentNode);
		} catch (Exception e) {
			e.printStackTrace();
			//System.exit(1);
		}
	}

	public SocketServer getSocketServer() {
		return socketServer;
	}
}
